<?php
require_once '../src/QueryPath/QueryPath.php';
$tplExtname='.php';
$tplPath='view/';
$page=qp($tplPath.'index'.$tplExtname);
$master=$page->attr('masterPage');
$master=qp($tplPath.$master.$tplExtname);
$master->find('ix:Content')->replaceWith($page->find('ixContent'));
$master->writeHTML();
//$page->writeHTML();